去掉删除本地图片

FFIB 2 年之前
父節點
當前提交
0e5817e5ae
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      kodo/oauth_settings.py

+ 0 - 6
kodo/oauth_settings.py

@@ -262,9 +262,6 @@ def DJANGO_FILE_UPLOAD_CALLBACK_FUNC(request, file_path=None, file_url=None):
262 262
         upload_file_req(file, file_path, bucket='tamron')
263 263
         file_url = qiniu_file_url(file_path, bucket='tamron')
264 264
 
265
-        if os.path.exists(file_path):
266
-            os.remove(file_path)
267
-
268 265
         return {
269 266
             'width': width,
270 267
             'height': height,
@@ -277,9 +274,6 @@ def DJANGO_FILE_UPLOAD_CALLBACK_FUNC(request, file_path=None, file_url=None):
277 274
         upload_file_req(file, file_path, bucket='tamron')
278 275
         file_url = qiniu_file_url(file_path, bucket='tamron')
279 276
 
280
-        if os.path.exists(file_path):
281
-            os.remove(file_path)
282
-
283 277
         return {
284 278
             'file_url': file_url,
285 279
         }